package cn.edu.ctbu.sbadmin.lablog.service;

import cn.edu.ctbu.sbadmin.common.core.AbstractService;
import cn.edu.ctbu.sbadmin.common.utils.MQuery;
import cn.edu.ctbu.sbadmin.lablog.dao.DimClassDAO;
import cn.edu.ctbu.sbadmin.lablog.domain.DimClassDO;
import cn.edu.ctbu.sbadmin.lablog.domain.DimLabDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 课程班级服务
 */
@Service
@Transactional
public class DimClassService extends AbstractService<DimClassDO> {
    @Autowired
    DimClassDAO dimClassDAO;
    public List<DimClassDO> getAll(){
        return dimClassDAO.getAll();

    }
    /**
     * 通用查询，返回视图
     * @param mQuery
     * @return
     */
    public List<DimClassDO> listView(MQuery mQuery)
    {
        return dimClassDAO.listView(mQuery);
    }

    /**
     * 通用查询，返回数量
     * @param mQuery
     * @return
     */
    public int countView(MQuery mQuery)
    {
        return dimClassDAO.countView(mQuery);
    }
}
